package com.zdb.n1.payload.request;

import com.zdb.n1.entity.User;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class RegisterRequest {
    @NotBlank
    @Size(min = 3, max = 50)
    private String username;
    @NotBlank
    @Size(min = 6, max = 40)
    private String password;
    @NotBlank
    @Size(max = 50)
    private String fullName;
    @NotBlank
    @Size(max = 100)
    @Email
    private String email;
    @Size(max = 15)
    private String phone;
    private User.Gender gender;
    private LocalDateTime birthDate;
} 